package com.woniuxy.mapper;

import com.woniuxy.entity.User;
import com.woniuxy.entity.UserExample;

import java.util.List;
import java.util.Map;

import com.woniuxy.vo.UserVO;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    long countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    User selectByPrimaryKey(Integer userId);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<UserVO> selectUserByExample(Map<String, Object> map);

    int countUserByExample(Map<String, Object> map);
}